package cn.itsource.mapper;

import cn.itsource.pojo.domain.Login;
import cn.itsource.pojo.domain.Permission;
import cn.itsource.pojo.domain.Role;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;

import java.util.List;

/**
 * <p>
 * 登录表 Mapper 接口
 * </p>
 *
 * @author lifan
 * @since 2024-09-03
 */
public interface LoginMapper extends BaseMapper<Login> {

    List<Permission> getPermissionByUserId(Long loginId);

    List<Role> getRoleByUserId(Long loginId);

    int insertAdminAndRole(Long adminId, Long roleId,Long id);
}
